<?php
/**
 * Created by PhpStorm.
 * User: zhouke
 * Date: 2018-09-12
 * Time: 15:34
 */

defined('BASEPATH') OR exit('No direct script access allowed');
include 'Base_admin.php';
class Home extends Base_admin {
    function  __construct() {
        parent::__construct();
        $this->check_login();
    }
    public function index() {
        $data['login_user'] = $this->login_user;
        $this->load->view('admin/home_index', $data);
    }

    function logout() {
        user_logout();
        redirect('admin/passport/index');
    }
}
